package com.mrd.gtimp.sup.entity;

import com.mrd.gtimp.base.entity.Company;
import com.mrd.gtimp.base.entity.SystemValue;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the T_SYS_BIZ_AUTO database table.
 */
@Entity
@Table(name = "T_SYS_BIZ_AUTO")
public class SysBizAuto implements Serializable {
    private static final long serialVersionUID = 1L;

    // private String biztype;


    @Temporal(TemporalType.DATE)
    @Column(name = "CREATEDATE")
    private Date createdate;

    @Column(name = "CREATEUSER")
    private String createuser;

    @ManyToOne
    @JoinColumn(name = "FCOMPANY")
    private Company fromCompany;

    @Id
    @GeneratedValue(generator = "sysBizAutoGenerator")
    @GenericGenerator(name = "sysBizAutoGenerator", strategy = "uuid")
    @Column(name = "ID")
    private String id;

    @Column(name = "\"STATE\"")
    private String state;

    @ManyToOne
    @JoinColumn(name = "TCOMPANY")
    private Company toCompany;

    @ManyToOne
    @JoinColumn(name = "BIZTYPE", referencedColumnName = "B_IDENTIFIER")
    private SystemValue systemValue;

    public SysBizAuto() {
    }

	/*
     * public String getBiztype() {
	 * return this.biztype;
	 * }
	 * public void setBiztype(String biztype) {
	 * this.biztype = biztype;
	 * }
	 */

    public Date getCreatedate() {
        return this.createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getCreateuser() {
        return this.createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Company getFromCompany() {
        return fromCompany;
    }

    public void setFromCompany(Company fromCompany) {
        this.fromCompany = fromCompany;
    }

    public Company getToCompany() {
        return toCompany;
    }

    public void setToCompany(Company toCompany) {
        this.toCompany = toCompany;
    }

    public SystemValue getSystemValue() {
        return systemValue;
    }

    public void setSystemValue(SystemValue systemValue) {
        this.systemValue = systemValue;
    }

}
